package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.TargetType;
import com.bestv.search.common.util.CommandException;

import java.util.List;

public interface TargetTypeManager {

    List<TargetType> getTargetTypes(DataSourceKey key);

    TargetType getTargetById(DataSourceKey key, Long id);

    TargetType getTargetByName(DataSourceKey key, String name);

    TargetType saveTargetType(DataSourceKey key, TargetType targetType);

    void deleteTargetType(DataSourceKey key, Long id) throws CommandException;
}
